//-----------------------------------------------------------------------
// <copyright file="a_Products_OptionService.cs" company="AACECOM">
//     Copyright (c) AACECOM. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------

using System;
using System.Collections;
using ThoiTrang.Entities;
using ThoiTrang.Data;
    
namespace ThoiTrang.Business
{   
	/// <summary>
	/// 
	/// </summary> 
    public class a_Products_OptionService
    {
        #region a_Products_Option

        public static void Createa_Products_Option(a_Products_Option a_Products_Option)
        {            
            try
            {
                a_Products_OptionDAO a_Products_OptionDAO = new a_Products_OptionDAO();
                a_Products_OptionDAO.Createa_Products_Option(a_Products_Option);
            }            
            catch (Exception ex)
            {                
                throw ex;
            }
        }        

        public static void Updatea_Products_Option(a_Products_Option a_Products_Option)
        {            
            try
            {
                a_Products_OptionDAO a_Products_OptionDAO = new a_Products_OptionDAO();
                a_Products_OptionDAO.Updatea_Products_Option(a_Products_Option);
            }           
            catch (Exception ex)
            {
                throw ex;
            }
        }        

        public static void Deletea_Products_Option(int optionID)
        {            
            try
            {
                a_Products_OptionDAO a_Products_OptionDAO = new a_Products_OptionDAO();
                a_Products_OptionDAO.Deletea_Products_Option(optionID);
            }            
            catch (Exception ex)
            {
                throw ex;
            }
        }
        
        public static a_Products_Option Geta_Products_Option(int optionID)
        {            
            try
            {
                a_Products_OptionDAO a_Products_OptionDAO = new a_Products_OptionDAO();
                return a_Products_OptionDAO.Geta_Products_Option(optionID);                
            }            
            catch (Exception ex)
            {
                throw ex;
            }
        }                

        public static a_Products_OptionCollection Geta_Products_OptionList(a_Products_OptionColumns orderBy, OrderDirection orderDirection)
        {            
            try
            {
                a_Products_OptionDAO a_Products_OptionDAO = new a_Products_OptionDAO();
                return a_Products_OptionDAO.Geta_Products_OptionList(orderBy, orderDirection);
            }            
            catch (Exception ex)
            {
               throw ex;
            }
        }        

        public static a_Products_OptionCollection Geta_Products_OptionList(a_Products_OptionColumns orderBy, OrderDirection orderDirection, int page, int pageSize, out int totalRecords)
        {            
            try
            {
                a_Products_OptionDAO a_Products_OptionDAO = new a_Products_OptionDAO();
                return a_Products_OptionDAO.Geta_Products_OptionList(orderBy, orderDirection, page, pageSize, out totalRecords);
            }            
            catch (Exception ex)
            {
                throw ex;
            }
        }        

        #endregion
    }
}